package com.ocean.uavd.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

/**
 * @Description: Activity相关工具类
 * @Author: Keyon
 * @Date: 2019/11/10 18:49
 */
public class ActivityUtil {

    /**
     * 跳转到newActivity
     * @param ctx
     * @param newActivity
     */
    public static void nextActivity(Context ctx, Class<? extends Activity> newActivity) {
        Intent intent = new Intent(ctx, newActivity);
        ctx.startActivity(intent);
    }

}
